<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>新闻管理</title>
    <meta name="keywords" content="manager,service,manage"/>
    <meta name="description" content="新闻列表,新闻,新闻管理"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="stylesheet" href="./assets/css/validationEngine.jquery.css" type="text/css">
    <link rel="stylesheet" href="./assets/css/datepicker.css"/>
    <style>
        table{
            table-layout:fixed;
        }
        td{
            overflow:hidden;
            text-overflow:ellipsis;
            white-space:nowrap;
        }
        @media screen and (min-width:768px){
            .modal-dialog{
                right:auto;left:50%;width:690px;padding-top:30px;padding-bottom: 30px;
            }
        }
    </style>
    <script src="./assets/js/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
    <script src="./assets/js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
    <!-- basic styles -->
</head>
<body>
<div class="page-content page-content2">
    <div class="row">
        <div class="col-xs-12">
            <form id="yuanfenFormId" class="form-horizontal" role="form">
                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">关键内容</span>
                    <span class="spanIcons"></span>
                    <input type="text" class="form-control form-control-two" id="contentName">
                </div>

                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">所属分类</span>
                    <span class="spanIcons"></span>
                    <select class="selectClassify form-control form-control-two" id="selectClassify">
                        <!--<option></option>-->
                        <!--<option value="123">结伴出行</option>-->
                        <!--<option value="4002">求医问药</option>-->
                        <!--<option value="4002">借东西</option>-->
                        <!--<option value="4002">活动召集</option>-->
                        <!--<option value="4002">出行分享</option>-->
                        <!--<option value="4002">问答</option>-->
                    </select>
                </div>

                <div class="input-group input-group-sm input-group-sm3">
                    <span class="input-group-addon group-addon">创建日期</span>

                    <input class="form-control date-picker form-control-three" id="startdate"
                           type="text" data-date-format="yyyy-mm-dd" style="margin-left: 29px;"/>
                    <span class="positi"> 至 </span>
                    <input class="form-control date-picker form-control-four" id="enddate"
                           type="text" data-date-format="yyyy-mm-dd"/>
                    <span>&nbsp;</span>

                    <button id="dataSearch" class="btn btn-primary btn-sm" title="查询">
                        <i class="icon-search nav-search-icon"></i>
                    </button>
                    <button id="dataadd" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#addModal" title="猿粪添加">
                        <i class="icon-plus-sign bigger-120"></i>
                    </button>
                    <button id="datacomment" type="button" class="btn btn-primary btn-sm"
                            data-toggle="modal" data-target="#commentModal" disabled
                            title="猿粪评论">
                        <i class="icon-list bigger-130"></i>
                    </button>
                    <!--<button id="datachange" type="button" class="btn btn-sm btn-success"-->
                            <!--data-toggle="modal" data-target="#updateModal" disabled-->
                            <!--title="服务修改">-->
                        <!--<i class="icon-pencil bigger-130"></i>-->
                    </button>
                    <button id="datadelete" type="button" class="btn btn-sm btn-danger"
                            data-toggle="modal" data-target="#deleteModal" disabled
                            title="猿粪删除">
                        <i class="icon-trash bigger-130"></i>
                    </button>
                    <!-- </div>	 -->
                </div>
            </form>

            <div class="row" style="margin-top: 0px;">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <table id="yuanfen_table" class="table"></table>
                    <!-- PAGE CONTENT ENDS -->
                </div>
                <!-- /.col -->
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /.page-content -->

<!-- 添加的modal start-->
<div class="modal fade bs-example-modal-lg" id="addModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">添加猿粪</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="addForm" data-type="add">

                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户ID</label>
                        <div class="col-sm-10">
                            <input type="text" class="validate[required] form-control" name="userId"
                                   placeholder="请输入ID">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">猿粪类型</label>
                        <div class="col-sm-10">
                            <select class="form-control" name="type">
                                <option></option>
                                <option value="1">结伴出行</option>
                                <option value="1">求医问药</option>
                                <option value="1">借东西</option>
                                <option value="1">活动召集</option>
                                <option value="1">出行分享</option>
                                <option value="2">问答</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">猿粪内容</label>
                        <div class="col-sm-10">
                            <input type="text" class="validate[required] form-control" name="introduction"
                                   placeholder="请输入内容">
                        </div>
                    </div>


                    <div class="form-group">
                        <label class="col-sm-2 control-label">消息结构</label>
                        <div class="col-sm-10">
                            <input type="text" class="validate[required] form-control" name="msgStruct"
                                   placeholder="请输入内容">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">点赞个数</label>
                        <div class="col-sm-10">
                            <input type="text"
                                   class="validate[required,custom[number],minSize[2],maxSize[50]] form-control"
                                   name="distributionCosts" placeholder="请输入点赞个数">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">热度</label>
                        <div class="col-sm-10">
                            <input type="text"
                                   class="validate[required,custom[number],minSize[2],maxSize[50]] form-control"
                                   name="distributionCosts" placeholder="请输入热度">
                        </div>
                    </div>

                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" name="submit" data-type="add">保存</button>
                <!--  <button type="reset" class="btn btn-warnning">重置</button> -->
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>

            </div>
        </div>
    </div>
</div>
<!-- 添加的modal end-->

<!-- 评论的modal start-->
<div class="modal fade" id="commentModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div id="modalDialog" class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="exampleModalLabel">评论详情</h4>
            </div>
            <div class="modal-body">
                <!--<button id="commentDelete" type="button" class="btn btn-sm btn-danger"-->
                        <!--data-toggle="modal" data-target="#deleteModal" disabled-->
                        <!--title="删除评论">-->
                    <!--<i class="icon-trash bigger-130"></i>-->
                <!--</button>-->
                <table id="comment_table" class="table"></table>
                <!--<form class="form-horizontal" id="updateForm" data-type="update">-->

                    <!--<div class="form-group" hidden>-->
                        <!--<label class="col-sm-2 control-label">ID</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="validate[required] form-control"-->
                                   <!--name="typeId" placeholder="typeId">-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">服务名</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="validate[required] form-control"-->
                                   <!--name="name" placeholder="Username">-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">服务描述</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="validate[required] form-control"-->
                                   <!--name="introduction" placeholder="introduction">-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">配送费用</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text"-->
                                   <!--class="validate[minSize[1],maxSize[50]] form-control"-->
                                   <!--name="distributionCosts" placeholder="distributionCosts">-->
                        <!--</div>-->
                    <!--</div>-->
                    <!--<div class="form-group">-->
                        <!--<label class="col-sm-2 control-label">状态</label>-->
                        <!--<div class="col-sm-10">-->
                            <!--<select class="form-control" name="status">-->
                                <!--<option value="4001">启用</option>-->
                                <!--<option value="4002">停用</option>-->
                            <!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</form>-->
            </div>
            <!--<div class="modal-footer">-->
                <!--<button type="button" class="btn btn-primary" name="submit" data-type="update">保存</button>-->
                <!--<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>-->
            <!--</div>-->
        </div>
    </div>
</div>
<!-- 评论的modal end-->

<!-- 删除的modal start-->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">删除猿粪</h4>
            </div>
            <!--Form的id为myForm-->
            <form id="deleteForm" data-type="delete">
                <div class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" name="submit" data-type="delete">确认</button>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- 删除的modal end-->
<script src="./assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="script/newsList.js"></script>
</body>
</html>
